from django.shortcuts import render

# Create your views here.
from django.http import HttpResponse
# blog/views.py

from django.shortcuts import render
from .models import Post


def index(request):
 post_list = Post.objects.all().order_by('-created_time')
 return render(request, 'blog/index.html', {'post_list': post_list})




